﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="DeptTrainDetailStatDetail.aspx.cs" Inherits="Page_DeptTrainDetailStatDetail" Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<%@ Register Assembly="Wicresoft.Common" Namespace="Wicresoft.Web.UI.WebControls"
    TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        function selectAll(cbSelecteAll) {
            for (var i = 0; i < document.aspnetForm.elements.length; i++) {
                var e = document.aspnetForm.elements[i];
                if (e.type == "checkbox") {
                    e.checked = cbSelecteAll.checked;
                }
            }
        }

        $(function() {
            $(".DivFloatRight").css("width", "100%");
        })
    </script>

    <style type="text/css">
        .FieldName
        {
            width: 70px;
        }
        .FieldInput
        {
            width: 130px;
        }
        .gotobtn
        {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 12px;
            height: 16px;
            width: 35px;
            color: #003677;
            border: solid 1px #5381B3;
            padding-left: 4px;
            padding-right: 4px;
            background: #F2F2F2;
        }
        .gototxt
        {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 9pt;
            color: Black;
            background-color: white;
            border: 1px solid #adb1c2;
            height: 16px;
        }
        .DivFloatLeft
        {
            height: 20px;
            float: left;
            width: 50%;
        }
        .DivFloatRight
        {
            height: 20px;
            text-align: right;
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="学员列表" Selected="true" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <div id="MainContent1">
                    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                        <wsc:ListHeader ID="lhMemberName" runat="server" Title="&nbsp;姓名" Width="100" />
                        <wsc:ListHeader ID="lhYearScore" runat="server" Title="&nbsp;本年学分" Width="80" />
                        <wsc:ListHeader ID="lhTotalScore" runat="server" Title="&nbsp;所有学分" Width="80" />
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                        <asp:Repeater ID="rptOrderInfo" runat="server"  OnItemDataBound="rptOrderInfo_ItemDataBound">
                            <ItemTemplate>
                                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand; text-align: left;"
                                    class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                                    <td width="100">
                                        <asp:Label runat="server" ID="lFullName" Text='<%# DataBinder.Eval(Container.DataItem, "FullName")%>'></asp:Label>
                                    </td>
                                    <td width="80">
                                        <%# DataBinder.Eval(Container.DataItem, "YearScore")%>
                                    </td>
                                    <td width="80">
                                        <%# DataBinder.Eval(Container.DataItem, "TotalScore")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                    <wsc:DataPager ID="dpPager" runat="server" PageSize="20" Width="100%" GotoInputCssClass="gototxt"
                        GotoButtonCssClass="gotobtn" CssClass="TablePager" OnPreRender="dpPager_PreRender">
                    </wsc:DataPager>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    var height = document.body.clientHeight; var trInfo1 = document.getElementById("trInfo1");
    var MainContent1 = document.getElementById("MainContent1"); if (height > 119) { 
        trInfo1.style.height = height - 99 + "px";
        MainContent1.style.height = height - 119 + "px"; 
    }
</asp:Content>
